package sysApi

import (
	"github.com/Sir-yuChen/funAnalyse/model/common/response"
	"github.com/Sir-yuChen/funAnalyse/model/request"
	"github.com/Sir-yuChen/funAnalyse/utils"
	"github.com/gin-gonic/gin"
)

type SysMoniterController struct{}

// SysMoniter 系统监控
// @Summary 系统监控
// @Tags 系统相关接口
// @Accept application/json
// @Produce application/json
// @response 200 {object} response.Response  "接口返回信息"
// @Router /funAnalyse/system/sysMoniter [GET]
func (b *SysMoniterController) SysMoniter(c *gin.Context) {
	var req request.MoniterRequest
	err := c.ShouldBindJSON(&req)
	if err != nil {
		utils.ErrValidatorResp(err, "SysMoniter", req, c)
		return
	}
	apiReturn := sysMoniterService.SysMoniter(&req)
	response.WithApiReturn(apiReturn, c)
	return
}
